home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-04 | 1.5 KB | 62 lines | [TEXT/KAHL] |
- //• These two...
-
- //• Initialize everything for the program, make sure we can run.
- void Draw_The_Poly (void)
- {
- Rect poly_wrecked;
- RGBColor poly_color;
-
- poly_color.red = Random (); //• So are there 281,474,976,710,656
- poly_color.green = Random (); //• possible combinations?
- poly_color.blue = Random (); //• Try 2 /*814749767106*/ 56 :)
-
- Random_Poly_Points (&poly_wrecked); //• Figure the poly points.
-
- RGBForeColor (&poly_color); //• Snag a random color for the RGB.
-
- //• Color paint it.
- PaintPoly (poly);
-
- //• Say what color the line is (NOT!).
- RGBForeColor (&white);
-
- //• Suitable for framing!
- FramePoly (poly); //• They're uglier with no frame!
-
- //• Bury it.
- KillPoly (poly);
-
- //•••••Added.••••//
- FillRect (& (window->portRect), black);
- } //• Now, "doitallagainreallyreallyfast!!!" (while not button, remember?).
-
- void main (void)
- {
- long ticks;
-
- Do_Init_Managers ();
-
- Check_The_Equipment ();
- Hide_Menu_Bar ();
- Set_Up_Window ();
-
- //• The seed for the random number generation.
- GetDateTime ( (unsigned long*) &qd.randSeed);
-
- HideCursor (); //• Don't want that 'fly' buzzin' around.
-
- while (! Button ()) //• While we ain't clickin...
- {
- Draw_The_Poly (); //• draw to the tickin'.
-
- //••••Uncommented.••••//
- Delay (60L, &ticks); //• Put the brakes on, a little...
- //• (uncomment for slow).
- //• FillRect (& (window->portRect), black);
- //• (uncomment for single).
- }
- ShowCursor ();
- Show_Menu_Bar ();
- ExitToShell ();
- }
-